package cn.hh.hrm.exceptionHandle;


import cn.hh.hrm.constant.GlobalStatusCode;

public class GlobalException extends  RuntimeException {
    private static final long serialVersionUID = 5162710183389028792L;


    public GlobalException() {
        super();
    }


    public GlobalException(String s) {
        super(s);
    }

    private  int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
    public GlobalException(GlobalStatusCode statusCode) {
        super(statusCode.getMessage());
        this.code = statusCode.getCode();
    }
    public GlobalException(int code ,String message) {
        super(message);
        this.code = code;
    }
}
